package com.sg.business.permission.adapter.visitor;

import com.sg.business.model.User;
import com.sg.business.permission.model.PermissionVisitorFactory;
import com.sg.business.resource.nls.Messages;

public class UserVisitorFactory extends PermissionVisitorFactory {

	private User user;

	public UserVisitorFactory(User user) {
		this.user = user;
	}

	@Override
	protected  String getName() {
		return "[" + Messages.get().User + "] "+user.getLabel();
	}

	@Override
	protected  String getType() {
		return USER;
	}

	@Override
	protected  Object getId() {
		return user.getUserid();
	}

}
